home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c,comp.std.c
- Path: blackbush.xlink.net!slsv6bt!slsv6bt!kanze
- From: kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763)
- Subject: Re: Integral conversion e.t.c. (was: Re: Hungarian notation)
- In-Reply-To: seebs@solutions.solon.com's message of 29 Jan 1996 09:00:10 -0600
- Message-ID: <KANZE.96Jan29195038@slsvewt.lts.sel.alcatel.de>
- Sender: news@lts.sel.alcatel.de
- Organization: SEL
- References: <30C40F77.53B5@swsbbs.com> <DLtABq.Fzu@mv.mv.com>
- <4edqh2$rvl@solutions.solon.com>
- <KANZE.96Jan29121956@slsvewt.lts.sel.alcatel.de>
- <4eindq$eju@solutions.solon.com>
- Date: 29 Jan 1996 18:50:38 GMT
-
- In article <4eindq$eju@solutions.solon.com> seebs@solutions.solon.com
- (Peter Seebach) writes:
-
- |> In article <KANZE.96Jan29121956@slsvewt.lts.sel.alcatel.de>,
- |> James Kanze US/ESC 60/3/141 #40763 <kanze@lts.sel.alcatel.de> wrote:
- |> >In article <4edqh2$rvl@solutions.solon.com> seebs@solutions.solon.com
- |> >(Peter Seebach) writes:
- |> >In the particular case which you cite, I do *not* believe that gcc
- |> >will compile the program without a diagnostic if the program is in a
- |> >file called a.c. More ever, the compiler documentation definitly
- |> >states that only programs in files whose names end in .c will be
- |> >compiled as C. (A legal restriction, as far as I can see.)
-
- |> That's an interesting question; the standard does not visibly make any
- |> such requirements, but you could argue that gcc is only a conforming compiler
- |> when invoked on a file ending in .c.
-
- I think you have to. After all, its documentation says that is a C
- compiler only when invoked on a file ending .c. With other endings,
- it may be an assembler, a linker, a C++ compiler, or even more
- different things.
-
- G++ is not alone in this situation.
-
- [...]
- |> For production code, I cheerfully assume POSIX or other standards.
- |> (And, of course, *document* those assumptions.)
-
- Which means that you are counting on extensions (e.g.: undefined
- behavior, according to the C standard).
- --
- James Kanze Tel.: (+33) 88 14 49 00 email: kanze@gabi-soft.fr
- GABI Software, Sarl., 8 rue des Francs-Bourgeois, F-67000 Strasbourg, France
- Conseils, Θtudes et rΘalisations en logiciel orientΘ objet --
- -- A la recherche d'une activitΘ dans une region francophone
-
-